From: LLVM Packaging Team Date: Tue, 16 Dec 2025 11:47:30 +0000 (+0100) Subject: mips-mlir-xgot X-Git-Tag: archive/raspbian/1%21.1.8-1+rpi1~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=77d1675d27477049e46506817dea74750ccc2aad;p=llvm-toolchain-21.git mips-mlir-xgot =================================================================== Gbp-Pq: Name mips-mlir-xgot.diff --- diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index a1ad81f625..8755314477 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -110,6 +110,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") endif() endif() +check_symbol_exists(__mips "" __MIPS) +append_if(__MIPS "-mxgot" CMAKE_C_FLAGS) +append_if(__MIPS "-mxgot" CMAKE_CXX_FLAGS) + # Installing the headers and docs needs to depend on generating any public # tablegen'd targets. # mlir-generic-headers are dialect-independent.